package com.fuhe.chen.vendingmachine.service;

import com.fuhe.chen.vendingmachine.pojo.BookOrder;

public interface IMQTTService {

    /**
     * 发布消息让售货机开门(无人售货现场购买)
     */
    void sendMessageForPurchase(String out_trade_no);

    /**
     * 发布消息让售货机开门(预约单取货)
     * @param orderId
     */
    void sendMessageForPick(BookOrder orderId);

    /**
     * 发布消息通知用户取货
     * @param userId
     */
    void sendMessageForNoticeToPick(String userId);
}
